﻿using MediatR;
using SmartProduction.Domain.采购委外订单;
using SmartProduction.ErrorCode;

namespace SmartProduction.Read.API.Application.Commands.PurchaseCommand
{
    /// <summary>
    /// 采购/委外订单显示
    /// </summary>
    public class PurchaseQueryCommand:IRequest<APIPaing<List<Purchase>>>
    {
        /// <summary>
        /// 订单编码
        /// </summary>
        public string? OrderCode { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        public string? OrderName { get; set; }
        /// <summary>
        /// 订单类型(下拉)
        /// </summary>
        public int? OrderType { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string? Supplier { get; set; }
        /// <summary>
        /// 所属项目(下拉)
        /// </summary>
        public int? Project { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int? ApprovalStatus { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 15;
    }
}
